<?php
require_once("config.php");
require_once("CDocuments.php");

$dossier="";
if(isset($_GET["dossier"])) {
	$dossier=$_GET["dossier"];
}

$f=new CFactures($config, $dossier);
$d=new CDevis($config, $dossier);
$c=new CCollection($config);
$c->add($f);
$c->add($d);

$c->showDocument($_GET["ref"]);

?>